package com.jade.explorer.views;

import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Path;
import org.eclipse.jface.resource.ImageDescriptor;
import org.eclipse.swt.graphics.Image;

import com.jade.explorer.Activator;

public class JadeSharedImages {

	/**
	 * Just for test and fun, yellow bird from angry birds game.
	 */
	public final static String FUN_YELLOW_ANGRY_BIRD = "FUN_YELLOW_ANGRY_BIRD";
	public final static String FUN_GREY_THUMB_UP = "FUN_GREY_THUMB_UP";
	public final static String FUN_SMILE_HAPPY = "FUN_SMILE_HAPPY";
	public final static String FUN_SMILE_UNHAPPY = "FUN_SMILE_UNHAPPY";
	public final static String FUN_SMILE_TONQUE = "FUN_SMILE_TONQUE";
	public final static String FUN_SMILE = "FUN_SMILE";
	public final static String FUN_BRAIN = "FUN_BRAIN";
	public final static String FUN_GAME_MONITOR = "FUN_GAME_MONITOR";
	
	public final static String IMG_LAYER_SHAPE_PLUS = "IMG_LAYER_SHAPE_PLUS";
	public final static String IMG_DOMAIN_GORIZOTAL_PLUS = "IMG_DOMAIN_GORIZOTAL_PLUS";
	public final static String IMG_ANISOTROPY_RED_PLUS = "IMG_ANISOTROPY_RED_PLUS";
	public final static String IMG_FOLDER_PLUS = "IMG_FOLDER_PLUS";
	public final static String IMG_VIEW_SOURCE = "IMG_VIEW_SOURCE";
	public final static String IMG_IMPORT = "IMG_IMPORT";
	public final static String IMG_EXPORT = "IMG_EXPORT";
	public final static String IMG_GREY_CUBE = "IMG_GREY_CUBE";
	public final static String IMG_EMPTY_FILE = "IMG_EMPTY_FILE";
	public final static String IMG_INGINEERING_FILE = "IMG_INGINEERING_FILE";
	public final static String IMG_COMMAND_PROMT = "IMG_COMMAND_PROMT";
	public final static String IMG_NEW_WIZARD = "IMG_NEW_WIZARD";
	public final static String IMG_COLOR_PALETTE = "IMG_COLOR_PALETTE";
	public final static String IMG_CONTROL_PLAY = "IMG_CONTROL_PLAY";
	public final static String IMG_TICK = "IMG_TICK";
	public final static String IMG_ROTATE_COUNTERCLOCKWISE = "IMG_ROTATE_COUNTERCLOCKWISE";
	public final static String IMG_ROTATE_CLOCKWISE = "IMG_ROTATE_CLOCKWISE";
	public final static String IMG_REFRESH = "IMG_REFRESH";
	public final static String IMG_COLOR_COBES = "IMG_COLOR_COBES";
	public final static String IMG_DOCUMENT_SAD = "IMG_DOCUMENT_SAD";
	public final static String IMG_DOCUMENT_X = "IMG_DOCUMENT_X";
	public final static String IMG_DOCUMENT_CUBES = "IMG_DOCUMENT_CUBES";
	public final static String IMG_BLUE_COPY = "IMG_BLUE_COPY";
	public final static String IMG_DOCUMENT_TREE = "IMG_DOCUMENT_TREE";
	public final static String IMG_FOLDER_TREE = "IMG_FOLDER_TREE";
	public final static String IMG_DOMAIN_VERTICAL = "IMG_DOMAIN_VERTICAL";
	public final static String IMG_DOMAIN_GORIZOTAL = "IMG_DOMAIN_GORIZOTAL";
	public final static String IMG_DOMAIN_COLOR = "IMG_DOMAIN_COLOR";
	public final static String IMG_BOX = "IMG_BOX";
	public final static String IMG_BORDER_OUTER = "IMG_BORDER_OUTER";
	public final static String IMG_BRIGHTNESS = "IMG_BRIGHTNESS";
	public final static String IMG_BRIGHTNESS_LOW = "IMG_BRIGHTNESS_LOW";
	public final static String IMG_BROOM = "IMG_BROOM";
	public final static String IMG_CONTROL_POWER = "IMG_CONTROL_POWER";
	public final static String IMG_CONTROL_STOP = "IMG_CONTROL_STOP";
	public final static String IMG_CROSS = "IMG_CROSS";
	public final static String IMG_CROSS_SCRIPT = "IMG_CROSS_SCRIPT";
	public final static String IMG_OBJECT = "IMG_OBJECT";
	public final static String IMG_OBJECT_GREY = "IMG_OBJECT_GREY";
	public final static String IMG_ANISOTROPY_GREEN = "IMG_ANISOTROPY_GREEN";
	public final static String IMG_SAVE = "IMG_SAVE";
	public final static String IMG_EXIT = "IMG_EXIT";
	public final static String IMG_ENVELOPE = "IMG_ENVELOPE";
	public final static String IMG_ANISOTROPY_RED = "IMG_ANISOTROPY_RED";
	public final static String IMG_FOLDER_VERT = "IMG_FOLDER_VERT";
	public final static String IMG_FOLDER_GOR = "IMG_FOLDER_GOR";
	public final static String IMG_FOLDER_OPEN = "IMG_FOLDER_OPEN";
	public final static String IMG_FOLDER_STAND = "IMG_FOLDER_STAND";
	public final static String IMG_GEAR = "IMG_GEAR";
	public final static String IMG_TARGET = "IMG_TARGET";
	public final static String IMG_GRID_DOT = "IMG_GRID_DOT";
	public final static String IMG_GRID = "IMG_GRID";
	public final static String IMG_GUIDE = "IMG_GUIDE";
	public final static String IMG_HAMMER = "IMG_HAMMER";
	public final static String IMG_SETTINGS = "IMG_SETTINGS";
	public final static String IMG_LAYER_MASK = "IMG_LAYER_MASK";
	public final static String IMG_LAYER = "IMG_LAYER";
	public final static String IMG_IMAGE = "IMG_IMAGE";
	public final static String IMG_ICE_EDIT = "IMG_ICE_EDIT";
	public final static String IMG_ICE_ADD = "IMG_ICE_ADD";
	public final static String IMG_ICE = "IMG_ICE";
	public final static String IMG_RESIZE = "IMG_RESIZE";
	public final static String IMG_ROTATE = "IMG_ROTATE";
	public final static String IMG_ROTATE_LEFT = "IMG_ROTATE_LEFT";
	public final static String IMG_LAYERS = "IMG_LAYERS";
	public final static String IMG_LAYERS_ARR = "IMG_LAYERS_ARR";
	public final static String IMG_LAYERS_SELECT = "IMG_LAYERS_SELECT";
	public final static String IMG_LAYER_SELECT_POINT = "IMG_LAYER_SELECT_POINT";
	public final static String IMG_LAYERS_GRUOP = "IMG_LAYERS_GRUOP";
	public final static String IMG_LAYER_SHAPE = "IMG_LAYER_SHAPE";
	public final static String IMG_LAYER_LINE = "IMG_LAYER_LINE";
	public final static String IMG_POLYGON = "IMG_POLYGON";
	public final static String IMG_ZOOM_IN = "IMG_ZOOM_IN";
	public final static String IMG_ZOOM_OUT = "IMG_ZOOM_OUT";
	public final static String IMG_ZOOM_FIT = "IMG_ZOOM_FIT";
	public final static String IMG_MAG = "IMG_MAG";
	public final static String IMG_MOLECULE = "IMG_MOLECULE";
	public final static String IMG_NODE = "IMG_NODE";
	public final static String IMG_NODE_DELETE = "IMG_NODE_DELETE";
	public final static String IMG_NODE_INSERT = "IMG_NODE_INSERT";
	public final static String IMG_NOTEPAD = "IMG_NOTEPAD";
	public final static String IMG_PAINT_TUBE = "IMG_PAINT_TUBE";
	public final static String IMG_PAPER_CLIP = "IMG_PAPER_CLIP";
	public final static String IMG_PIPETTE = "IMG_PIPETTE";
	public final static String IMG_PLUS = "IMG_PLUS";
	public final static String IMG_RAINBOW = "IMG_RAINBOW";
	public final static String IMG_SKULL = "IMG_SKULL";
	public final static String IMG_SPECTRUM = "IMG_SPECTRUM";
	public final static String IMG_JOIN = "IMG_JOIN";
	public final static String IMG_JOIN_INNER = "IMG_JOIN_INNER";
	public final static String IMG_JOIN_LEFT = "IMG_JOIN_LEFT";
	public final static String IMG_JOIN_LEFT_EXCLUDE = "IMG_JOIN_LEFT_EXCLUDE";
	public final static String IMG_JOIN_OUTER = "IMG_JOIN_OUTER";
	public final static String IMG_JOIN_OUTER_EXCLUDE = "IMG_JOIN_OUTER_EXCLUDE";
	public final static String IMG_WOODEN_BOX = "IMG_WOODEN_BOX";
	
	
	/**
	 * This method returns an image via <code>org.eclipse.swt.graphics.Image</code> by selected symbolic name constant
	 * @param symbolicName String constant from this class
	 * @return an image via <code>org.eclipse.swt.graphics.Image</code>
	 */
	public static Image getImage(String symbolicName){
		
		ImageDescriptor myImage = ImageDescriptor.createFromURL(FileLocator.find(Activator.getDefault().getBundle(), new Path("icons/" + symbolicName + ".png"),null));
		return myImage.createImage();
	}
	
	
	/**
	 * This method returns an ImageDesctiptor via <code>org.eclipse.jface.resource.ImageDescriptor</code> by selected symbolic name constant
	 * @param symbolicName String constant from this class
	 * @return an ImageDesctiptor via <code>org.eclipse.jface.resource.ImageDescriptor</code>
	 */
	public static ImageDescriptor getImageDescriptor(String symbolicName){
		return ImageDescriptor.createFromURL(FileLocator.find(Activator.getDefault().getBundle(), new Path("icons/" + symbolicName + ".png"),null));
	}
	
	
	/**
	 * Returns IMG_BIG_CUSTOMIZED.png image 64x64
	 * @return
	 */
	public static Image getBigCustomize(){
		ImageDescriptor myImage = ImageDescriptor.createFromURL(FileLocator.find(Activator.getDefault().getBundle(), new Path("icons/big/IMG_BIG_CUSTOMIZED.png"),null));
		return myImage.createImage();
	}
	
	
	/**
	 * Returns icons/big/IMG_BIG_NEW_FOLDER.png image 64x64
	 * @return
	 */
	public static Image getBigNewFolder(){
		ImageDescriptor myImage = ImageDescriptor.createFromURL(FileLocator.find(Activator.getDefault().getBundle(), new Path("icons/big/IMG_BIG_NEW_FOLDER.png"),null));
		return myImage.createImage();
	}
	
	
	/**
	 * Returns IMG_MENU_TITLE.png image 444x44
	 * @return
	 */
	public static Image getMenuTitleImg(){
		ImageDescriptor myImage = ImageDescriptor.createFromURL(FileLocator.find(Activator.getDefault().getBundle(), new Path("icons/big/IMG_MENU_TITLE.png"),null));
		return myImage.createImage();
	}
	
}
